package com.aracky.system.model.entity;

import com.aracky.common.entitybase.BaseCommonEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 菜单模型绑定表
 * </p>
 *
 * @author zzp
 * @since 2022-08-24 09:54:46
 */
@Getter
@Setter
@TableName("sys_menu_table")
@ApiModel(value = "SysMenuTable对象", description = "菜单模型绑定表")
public class SysMenuTable extends BaseCommonEntity {

    @ApiModelProperty("绑定ID")
    @TableId(value = "mt_id", type = IdType.AUTO)
    private Long mtId;

    @ApiModelProperty("菜单id")
    @TableField("menu_id")
    private Long menuId;

    @ApiModelProperty("表头id")
    @TableField("head_id")
    private Long headId;

    @ApiModelProperty("title显示")
    @TableField("display_title")
    private String displayTitle;

    @ApiModelProperty("主表/子表（1主表，0子表）")
    @TableField("is_main")
    private Boolean isMain;

    @ApiModelProperty("是否多条记录（0仅一条，1多条记录）")
    @TableField("is_multi_record")
    private Boolean isMultiRecord;

    @ApiModelProperty("主键字段名")
    @TableField("primary_key")
    private String primaryKey;

    @ApiModelProperty("外键字段名")
    @TableField("foreign_key")
    private String foreignKey;

    @ApiModelProperty("返回结果中子表字段")
    @TableField("child_table_fr_api")
    private String childTableFrApi;

    @ApiModelProperty("允许添加行（1允许，0不允许）")
    @TableField("is_can_add_row")
    private Boolean isCanAddRow;

    @ApiModelProperty("允许编辑列（1允许，0不允许）")
    @TableField("is_can_edit_col")
    private Boolean isCanEditCol;

    @ApiModelProperty("允许删除行（1允许，0不允许）")
    @TableField("is_can_delete_row")
    private Boolean isCanDeleteRow;

    @ApiModelProperty("API请求方式（G-get P-post）")
    @TableField("request_type")
    private String requestType;

    @ApiModelProperty("后端api")
    @TableField("api")
    private String api;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;


}
